]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userMenu: Close menu immediately when activating Lock
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Sep 2012 03:02:15 +0000 (05:02 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Sep 2012 09:50:57 +0000 (11:50 +0200)
When locking the screen, the user menu is moved to the opposite
side. Unless we close the menu immediately without animation, the
menu will jump to the other side and fade out while the screen
shield slides down.

https://bugzilla.gnome.org/show_bug.cgi?id=684343

js/ui/userMenu.js

index fcac6cdb783c56b8997e45b82c2cb3d93c9de969..3d6e340fb677924debda03e394cf042960ac7c9d 100644 (file)
@@ -12,6 +12,7 @@ const Tp = imports.gi.TelepathyGLib;
 const UPowerGlib = imports.gi.UPowerGlib;
 const Atk = imports.gi.Atk;
 
+const BoxPointer = imports.ui.boxpointer;
 const GnomeSession = imports.misc.gnomeSession;
 const Main = imports.ui.main;
 const PanelMenu = imports.ui.panelMenu;
@@ -813,6 +814,7 @@ const UserMenuButton = new Lang.Class({
     },
 
     _onLockScreenActivate: function() {
+        this.menu.close(BoxPointer.PopupAnimation.NONE);
         Main.overview.hide();
         Main.screenShield.lock(true);
     },